<template>
  <div class="container">
    <div class="box" v-resize="handleSizeChange"></div>
  </div>
</template>

<script setup>
const handleSizeChange = () => {
  console.log('红box大小发生变化了')
}
</script>

<style scoped>
.box {
  width: 100%;
  height: 100px;
  border: 1px solid red;
}
</style>
